package com.ruoyi.project.chargesystem.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

//收费表
public class CharCharge extends BaseEntity {
    //id
    private Integer id;
    //'订单号'
    private String orderId;
    //'挂号单号'
    private String registrationId;
    //'患者姓名'
    private String patientName;
    //'总金额'
    private Integer totalAmount;
    //'支付类型'
    private String paymentMethod;
    //'订单状态'
    private Integer orderStatus;
    //'创建时间'
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creationTime;

    @Override
    public String toString() {
        return "CharCharge{" +
                "id=" + id +
                ", orderId='" + orderId + '\'' +
                ", registrationId='" + registrationId + '\'' +
                ", patientName='" + patientName + '\'' +
                ", totalAmount=" + totalAmount +
                ", paymentMethod='" + paymentMethod + '\'' +
                ", orderStatus=" + orderStatus +
                ", creationTime=" + creationTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getRegistrationId() {
        return registrationId;
    }

    public void setRegistrationId(String registrationId) {
        this.registrationId = registrationId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public CharCharge(Integer id, String orderId, String registrationId, String patientName, Integer totalAmount, String paymentMethod, Integer orderStatus, Date creationTime) {
        this.id = id;
        this.orderId = orderId;
        this.registrationId = registrationId;
        this.patientName = patientName;
        this.totalAmount = totalAmount;
        this.paymentMethod = paymentMethod;
        this.orderStatus = orderStatus;
        this.creationTime = creationTime;
    }

    public CharCharge() {
    }
}
